package com.xiaoxing.gongqiju.mvp.model;

import android.app.Application;

import com.google.gson.Gson;
import com.jess.arms.integration.IRepositoryManager;
import com.jess.arms.mvp.BaseModel;

import java.util.Map;

import com.jess.arms.di.scope.ActivityScope;

import javax.inject.Inject;

import com.xiaoxing.gongqiju.mvp.contract.LiaoCheng_GongQiJu_YingJiChuKuContract;


import com.xiaoxing.gongqiju.mvp.api.ApiService;
import com.xiaoxing.gongqiju.mvp.ui.entity.LiaoCheng_GongQiJu_YingJiChuKu;

import io.reactivex.Observable;
import okhttp3.RequestBody;


@ActivityScope
public class LiaoCheng_GongQiJu_YingJiChuKuModel extends BaseModel implements LiaoCheng_GongQiJu_YingJiChuKuContract.Model {
    @Inject
    Gson mGson;
    @Inject
    Application mApplication;

    @Inject
    public LiaoCheng_GongQiJu_YingJiChuKuModel(IRepositoryManager repositoryManager) {
        super(repositoryManager);
    }

    @Override
    public Observable<LiaoCheng_GongQiJu_YingJiChuKu> getLiaoCheng_GongQiJu_YingJiChuKuData(RequestBody map) {
        return mRepositoryManager.obtainRetrofitService(ApiService.class).getLiaoCheng_GongQiJu_YingJiChuKuData(map);

    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        this.mGson = null;
        this.mApplication = null;
    }
}